<link rel="stylesheet" href="../addons/jy_aligroup/custom/templates/mobile/css/style.css?v=2019" />
<style>
.content-group {background:#fff;border-radius: 0.5rem;margin-bottom:0.39rem}
.merchname {display:none}
.fui-tab-scroll .item a {color:#fff;font-weight:400}
.fui-tab-scroll .item.on,.fui-tab-scroll .item.on a{color:#fff;}
.fui-tab-scroll .item.on:before {background:linear-gradient(to right,rgba(255,255,255,1),rgba(255,255,255,0));}
.fui-icon-group .fui-icon-col {
    margin: 0.1rem 0;
}
.carousel {margin-top:0}
.fui-header:after {
	border-bottom: 0 solid #D9D9D9;
}
.fui-notice:after, .fui-notice:before  {
	border-bottom: 0 solid #D9D9D9;
	border-top: 0 solid #D9D9D9;
}
.bottombg {position: absolute;width:100%;height:3.5rem;border-bottom-right-radius:100% 10rem;border-bottom-left-radius:100% 1rem;}

</style>
<div class='fui-page creditshop-index-page'>
	<div class='fui-content'>
		<div class="topbg" style="position: relative;text-align:center;width:100%;height:4.5rem;background: {{main.syscolor || '#7c1cc9'}};">
			<div class="fui-header" style="background:none">
				<div class="fui-header-left" style="padding-left:0.5rem">
					<img style="height:1.2rem" ng-src="{{tomedia(pagedata.setting.logo) || '../addons/jy_aligroup/images/logo.png'}}"/>
				</div>
				<div class="title"></div>
				<div class="fui-header-right" style="padding-right:0.5rem;color:#fff">
					<i class="icon jinyunicon icon-fenxiang2" onclick="$('#showsharecover').modal();" style="font-size: 1rem;margin-right:10px"></i>
					<i class="icon jinyunicon icon-liaotian" ng-click="access_json('jy_aligroup/myteam/')" style="font-size: 1rem;"></i>
				</div>
			</div>
			<div class="fui-searchbar bar" style="background:none;z-index: 0;top:2rem">
					<div class="fui-cellone" style="padding:0.5rem 0;">
							 <div class="fui-cellone-info">
								<div class="search-input" style="height:1.6rem">
									<form action="javascript:return true">
									<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="tool.get_list('jy_aligroup/index/getlist/',true)" style="line-height: 1.7rem;"></i>
									<input type="search" placeholder="请输入商品名称" class="search" ng-model="pagedata.params.keyword" style="height:1.6rem;border: 0;text-align: left; color: #999; font-size:0.6rem;background:#fff;border-radius: 1rem;" />
									</form>
								</div>
							 </div>
							 <div class="fui-cellone-remark noremark">
								<span style="margin-left:0.3rem;font-size: 0.75rem;color:#fff" ng-click="tool.get_list('jy_aligroup/index/getlist/',true)">搜索</span>
							 </div>
					</div>
			</div>
		</div>
		<div class="fui-tab-scroll" ng-if="pagedata.category.length>0" style="background: {{main.syscolor || '#7c1cc9'}};">
			<div ng-class="{'item':1,'on':pagedata.params.cid==0 && pagedata.params.isindex==1}" style="height:2rem;line-height:1.5rem"><a href="javascript:;" ng-click="pagedata.params.cid=0;pagedata.params.isindex=1;tool.get_list('jy_aligroup/index/getlist/cid=0&isindex=1',true)">推荐</a></div>
			<div ng-class="{'item':1,'on':pagedata.params.cid==0 && pagedata.params.isindex==0}" style="height:2rem;line-height:1.5rem"><a href="javascript:;" ng-click="pagedata.params.cid=0;pagedata.params.isindex=0;tool.get_list('jy_aligroup/index/getlist/cid=0',true)">全部</a></div>
			<div ng-repeat="tab in pagedata.category" style="height:2rem;line-height:1.5rem" ng-class="{'item':1,'on':pagedata.params.cid==tab.id}"><a href="javascript:;" ng-click="pagedata.params.cid=tab.id;pagedata.params.isindex=0;tool.get_list('jy_aligroup/index/getlist/cid='+tab.id,true)">{{tab.title}}</a></div>
		</div>
		<div class="bottombg" style="background:{{main.syscolor || '#7c1cc9'}};"></div>
		<div ng-if="pagedata.setting.hdps.length>0" ng-include="sys_html('shop/_hdps','','','jy_weishop')" class="radius" style="padding:0 0.5rem;"></div>
		<div ng-if="pagedata.setting.bankuai1.length>0" class="radius" style="padding: 0.3rem;width:100%">
			<div class="bgnone" ng-include="sys_html('shop/_bankuai1','','','jy_weishop')"></div>
		</div>
		<div class="radius" style="padding: 0 0.5rem;">
		<div class="fui-tab fui-tab-danger">
			<a ng-click="pagedata.params.status=1;tool.get_list('jy_aligroup/index/getlist/',true);" ng-class="{'external':1,'active':pagedata.params.status==1}">热门拼团</a>
			<a ng-click="pagedata.params.status=2;tool.get_list('jy_aligroup/index/getlist/',true);" ng-class="{'external':1,'active':pagedata.params.status==2}">拼团预告</a>
		</div>
		<div class="lynn_item"></div>
		<div class="lynn_index_rec">
			<p><i></i><span>{{pagedata.params.status==1?'正在热团':'预告拼团'}}</span></p>
			<span>H O T S A L E</span>
		</div>
		<ul class="lynn_index_list_ul row" style="padding-left:10px;padding-right:10px">
			<li ng-repeat="item in pagedata.list" class="lynn_index_list_li fui-list goods-list">
				<a href="javascript:;" ng-click="access_json('jy_aligroup/goods//id='+item.id)" class="external lynn_index_list_a fui-list-media">
					<img ng-src="{{tomedia(item.goods.image)}}"  alt="{{item.title}}" href="javascript:;">
				</a>
				<div href="javascript:;" ng-click="access_json('jy_aligroup/goods//id='+item.id)" class="lynn_index_list_info fui-list-inner" >
					<h3 style="margin:0">{{item.title}}</h3>
					<p>{{item.subtitle || item.title}}</p>
					<del>原价：¥{{item.goods.price}}</del>
					<div class="lynn_index_list_team">
						<span class="lynn_index_list_team_left">
							<strong><i class="icon jinyunicon icon-paihao0"></i></strong>{{item.groupnum || '0'}}人团 ¥ <red>{{item.group_price || '0.00'}}</red>/{{item.units ||'件'}} <span ng-if="item.status==1">剩{{item.lastnum}}{{item.units ||'件'}}</span>
						</span>
						<a class="external lynn_index_list_team_a">去拼团 ></a>
					</div>
				</div>
			</li>
		
		</ul>
		<div ng-if="pagedata.list.length<=0" class="fui-message fui-message-popup in">
			<div class="icon ">
				<i class="icon jinyunicon icon-information"></i>
			</div>
			<div class="content">暂无任何活动</div>
		</div>
	
	</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<script>
scope.pagedata.setting.issearch=1
scope.loading = true;  //状态标记
scope.isnodata = false;
//滚动加载
scope.tool.get_list('jy_aligroup/index/getlist/isindex=1',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_aligroup/index/getlist/');
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>
<div ng-include="sys_html('common/_gotop',true)"></div>